package com.tracesystem.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Kevin Martin
 * @since 2022-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("i_issue_attach")
public class IssueAttach implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ATTACH_ID", type = IdType.AUTO)
    private Integer attachId;

    @TableField("ATTACH_DESC")
    private String attachDesc;

    @TableField("ISSUE_ID")
    private Integer issueId;

    @TableField("ATTACH_FILE")
    private String attachFile;

    /**
     * 字节数
     */
    @TableField("FILE_SIZE")
    private BigDecimal fileSize;

    @TableField("MIME_TYPE")
    private String mimeType;

    /**
     * 1 图片	            0 非图片
     */
    @TableField("IS_PIC")
    private Integer isPic;

    /**
     * 数据字典ISSUE_DATA_STATE类型的代码
     */
    @TableField("LOG_STATE")
    private String logState;

    @TableField("FILE_URL")
    private String fileUrl;

    @TableField(value = "CREATE_BY",fill = FieldFill.INSERT)
    private String createBy;

    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "MODIFY_BY",fill = FieldFill.INSERT_UPDATE)
    private String modifyBy;

    @TableField(value = "MODIFY_TIME",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifyTime;


}
